package com.itcast.bihuan;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

/**
 * Created by Administrator on 2016/3/14 0014.
 */
public class CatchLinks {

    //写入一个元素适配器
    public static void writeElement(File file, String element){
        try {
            FileUtils.write(file, "\"", "GBK", true);
            FileUtils.write(file, element, "GBK", true);
            FileUtils.write(file, "\"," , "GBK", true);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
